package com.mall.client.server.controller;

import com.mall.client.server.domain.ClientTag;
import com.mall.client.server.service.ClientTagService;
import com.mall.common.core.domain.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName TagController
 * @Description 描述
 * @Author Qiu Feng
 * @Date 2025/2/17 15:09
 */
@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    private ClientTagService clientTagService;

    @GetMapping("/list")
    public Result clientTagList(){
        List<ClientTag> clientTags = clientTagService.clientTagList();
        Result<List<ClientTag>> success = Result.success(clientTags);
        return success;
    }
}
